<!DOCTYPE html>
<html>
<head>
    <title>客户表</title>
		<#include "/header.html">
</head>
<body>
<div id="rrapp" v-cloak>
    <div v-show="showList">
        <div class="grid-btn">
			<#if shiro.hasPermission("sys:customer:save")>
            <a class="btn btn-primary" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</a>
			</#if>
			<#if shiro.hasPermission("sys:customer:update")>
            <a class="btn btn-primary" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</a>
			</#if>
			<#if shiro.hasPermission("sys:customer:delete")>
            <a class="btn btn-primary" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
			</#if>
        </div>
        <table id="jqGrid"></table>
        <div id="jqGridPager"></div>
    </div>

    <div v-show="!showList" class="panel panel-default">
        <div class="panel-heading">{{title}}</div>
        <form class="form-horizontal">
														                    <div class="form-group">
                        <div class="col-sm-2 control-label">客户名称</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="customer.name" placeholder="客户名称"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">跟单人</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="customer.userId" placeholder="跟单人"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">跟进人名称</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="customer.userName" placeholder="跟进人名称"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">客户等级，0未联系客户、1是无需求客户</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="customer.type" placeholder="客户等级，0未联系客户、1是无需求客户"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">客户状态</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="customer.status" placeholder="客户状态"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">采单时间</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="customer.addDate" placeholder="采单时间"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">最后跟进时间</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="customer.updDate" placeholder="最后跟进时间"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">所属行业</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="customer.industry" placeholder="所属行业"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">电话</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="customer.phone" placeholder="电话"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">联系人</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="customer.contact" placeholder="联系人"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">地址</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="customer.address" placeholder="地址"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">days</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="customer.days" placeholder="days"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">到账金额</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="customer.amount" placeholder="到账金额"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">申请内容</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="customer.content" placeholder="申请内容"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">公司传真</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="customer.tel" placeholder="公司传真"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">公司网址</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="customer.url" placeholder="公司网址"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">营业执照</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="customer.businessLicense" placeholder="营业执照"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">公司概要</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="customer.companyProfile" placeholder="公司概要"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">注册资金</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="customer.capital" placeholder="注册资金"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">邮政编码</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="customer.postalCode" placeholder="邮政编码"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">备注</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="customer.remark" placeholder="备注"/>
                        </div>
                    </div>
							            <div class="form-group">
                <div class="col-sm-2 control-label"></div>
                <input type="button" class="btn btn-primary" @click="saveOrUpdate" value="确定"/>
                &nbsp;&nbsp;<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
            </div>
        </form>
    </div>
</div>

<script src="${request.contextPath}/statics/js/modules/sys/customer.js?_${.now?long}"></script>
</body>
</html>